# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

#
# This module sets the following variables:
#   mvfst_FOUND
#   mvfst_INCLUDE_DIRS
#
# This module exports the following target:
#    mvfst::mvfst
#
# which can be used with target_link_libraries() to pull in the proxygen
# library.

@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
find_dependency(folly)
find_dependency(Fizz)
find_dependency(Threads)
find_dependency(Boost COMPONENTS iostreams system thread filesystem regex context)

if(NOT TARGET mvfst::mvfst_transport)
  include("${CMAKE_CURRENT_LIST_DIR}/mvfst-targets.cmake")
  get_target_property(mvfst_INCLUDE_DIRS mvfst::mvfst_transport INTERFACE_INCLUDE_DIRECTORIES)
endif()

if(NOT mvfst_FIND_QUIETLY)
  message(STATUS "Found mvfst: ${PACKAGE_PREFIX_DIR}")
endif()
